package Shop;

class ShoppingCart {
   	 protected Goods goods;
   	 public int[] num;
   	 public void ShowGoodsInformation(){
   		System.out.println("===========================================================");
		System.out.println("|   name   | price |   introduce   | sales_volume |  num  |");
		System.out.println("===========================================================");
		for(int i = 0;i <= goodsName.length;i++){
			System.out.println("|"+goodsName[i]+"|"+goodsPrice[i]+"|"+introduce[i]+"|"+sales_volume[i]+"|"+num[i]+"|");
		}
		System.out.println("===========================================================");
	 }
     public void ClearAll(){
    	 
     }
     public void DeleteGoods(){
    	 
     }
     public double FinalPrice(){
    	double e = 0; 
    	for (int i = 0; i < num.length; i++) {
			e += goodsPrice[i]*num[i];
		}
    	return e;
     }
     public void SettleAccounts(){
    	 System.out.println("Pay success!");
     }
   	 
   	 
    
   
}
